﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="AlbumsWithTags.aspx.vb" Inherits="SingerProfile.AlbumsWithTags" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
    <ItemTemplate>
     <a href="Details.aspx?ID=<%#Eval("ID")%>"><%# Eval("Album_Name")%></a><br />
    </ItemTemplate>
    </asp:Repeater>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SingerProfileConStr %>" 
        ProviderName="<%$ ConnectionStrings:SingerProfileConStr.ProviderName %>" 
        
        SelectCommand="SELECT [Albums.ID] AS ID, [Album_Name] FROM [Qry_album_with_tags] WHERE ([Tag] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="Tag" QueryStringField="TagName" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:Label ID="lbl_norecords" runat="server"></asp:Label>
</asp:Content>
